package com.um.springboot.starter.entity;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author 邓南辉
 * @date 2019/12/19
 * @copyright 广州优匠科技有限公司
 */
public class MultipartFileParam {

    /**
     * 是否使用app路径
     */
    private String useAppPath;
    /**
     * 上次上传文件的位置
     */
    private Long start;
    /**
     * 文件保存路径
     */
    private String path;
    /**
     * 文件名称
     */
    private String name;
    /**
     * 文件标识
     */
    private String fileId;
    /**
     * 文件类型
     */
    private String fileType;
    /**
     * 是否上传完成
     */
    private String isComplete;

    /**
     * 文件对象
     */
    @JSONField(serialize = false)
    private MultipartFile file;

    /**
     * 图片缩略图
     */
    private String thumbs;

    public String getUseAppPath() {
        return useAppPath;
    }

    public void setUseAppPath(String useAppPath) {
        this.useAppPath = useAppPath;
    }

    public Long getStart() {
        return start;
    }

    public void setStart(Long start) {
        this.start = start;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getIsComplete() {
        return isComplete;
    }

    public void setIsComplete(String complete) {
        isComplete = complete;
    }


    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public String getThumbs() {
        return thumbs;
    }

    public void setThumbs(String thumbs) {
        this.thumbs = thumbs;
    }

}
